// pages/store/print/print.js
Page({

  data: {  photo:[{pic:'../../../images/2.png',text:'照片打印'},{pic:'../../../images/3.png',text:"证件打印"},{pic:"../../../images/4.png",text:'平图打印'},
{pic:"../../../images/5.png",text:'拍照打印'},{pic:'../../../images/5.png',text:'微信打印'}],
goods_id:''

  },

  onLoad: function (options) {
     this.setData({
       goods_id:options.id
     })
     
  },
     printtypeclick(e){
       var i=e.currentTarget.dataset.index
       if(i==0){
         wx.navigateTo({
           url: '/pages/store/print/printtype?id='+this.data.goods_id,
         })
       }else if(i==1){

       }else if(i==2){

       }else if(i==3){
         wx.navigateTo({
           url: '/pages/store/print/photo/photo?id='+this.data.goods_id,
         })

       }else if(i==4){

       }else{

       }
       
     },
     navdocument(e){
       console.log(e);
       let index=e.currentTarget.dataset.index
       wx.navigateTo({
         url: '/pages/document/document',
       })
       
     }

 
})